# Dockerfile文件内容
FROM zgzg/jdk8
# FROM kubesphere/java-8-centos7:v3.2.0
ADD target/zgzg-pay-web.jar /zgzg/

ADD target/docker-extra/run-java/run-java.sh /zgzg/
EXPOSE 8080
ENTRYPOINT [ "sh",  "/zgzg/run-java.sh" ]
docker run -d  -p 8087:8087 -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v /opt/pod/hosts:/etc/hosts -v /opt/apps/pay/app:/app -v /opt/apps/pay/logs:/logs --name pay openjdk:8u342-oracle java -server -XX:ErrorFile=/logs/java_error_%p.log -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/logs/gc.log  -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs -Xms128M -Xmx512M -Xmn128M -XX:-OmitStackTraceInFastThrow -Djava.security.egd=file:/dev/./urandom -jar  -Dspring.profiles.active=dev /app/app.jar





#docker run -d -p 8087:8087 -v /etc/localtime:/etc/localtime:ro  -v /etc/timezone:/etc/timezone:ro -v /opt/pod/hosts:/etc/hosts -v /opt/apps/pay/app:/app -v /opt/apps/pay/logs:/logs --name pay openjdk:8u342-oracle java -server -XX:ErrorFile=/logs/java_error_%p.log -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/logs/gc.log  -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs -Xms128M -Xmx512M -Xmn128M -XX:-OmitStackTraceInFastThrow -Djava.security.egd=file:/dev/./urandom -jar  -Dspring.profiles.active=dev /app/app.jar